{{--<script type="text/ng-template" id="home.tpl">--}}
<div ng-controller="HomeController" class="home container">
    <div class="card">
        <h1>最近动态</h1>
        <div class="hr"></div>
        <div class="item-set">
            <div ng-repeat="val in TimeLine.data track by $index" class="feed item clearfix">
                <div ng-if="val.question_id" class="vote">
                    <div ng-click="TimeLine.vote({id: val.id, vote : 1})" class="up">
                        赞 [: val.upvote_count :]
                    </div>
                    <div ng-click="TimeLine.vote({id: val.id, vote : 2})" class="down">
                        踩 [: val.downvote_count :]
                    </div>
                </div>
                <div class="feed-item-content">
                    <div ng-if="val.question_id" class="content-act">[: val.user.username :]添加了回答</div>
                    <div ng-if="!val.question_id" class="content-act">[: val.user.username :]添加了提问</div>
                    {{----}}
                    <div ng-if="val.question_id" ui-sref="question.detail({id: val.question.id})" class="title">
                        [: val.question.title :]
                    </div>
                    <div ui-sref="question.detail({id: val.id})" class="title">
                        [: val.title :]
                    </div>
                    <div class="content-owner">[: val.user.username :]
                        <span class="desc">consequatur cumconsequatur cum</span>
                    </div>

                    <div ng-if="val.question_id" class="content-main">
                        [: val.content :]
                        <div class="gray">

                            <a ui-sref="question.detail({id: val.question.id, answer_id : val.id})">
                                [: val.updated_at:]
                            </a>
                        </div>
                    </div>

                    <div class="action-set">
                        <div class="comment">评论</div>
                    </div>
                </div>
                <div class="comment-block">
                    <div class="hr"></div>
                    <div class="comment-item-set">
                        <div class="rect"></div>
                        <div class="comment-item clearfix">
                            <div class="user">
                                李明
                            </div>
                            <div class="comment-content">
                                illum molestias necessitatibus nulla omnis quae quidem reiciendis sed vel velit.
                                Explicabo
                                Lorem ipsum dolor sit amet, consectetur adipisicing elit. A amet, asperiores
                                aspernatur
                                consequatur cum
                                Lorem ipsum dolor sit amet, consectetur adipisicing elit. A amet, asperiores
                                aspernatur
                                consequatur cum
                            </div>
                        </div>
                        <div class="comment-item clearfix">
                            <div class="user">
                                李明
                            </div>
                            <div class="comment-content">
                                illum molestias necessitatibus nulla omnis quae quidem reiciendis sed vel velit.
                                Explicabo
                                Lorem ipsum dolor sit amet, consectetur adipisicing elit. A amet, asperiores
                                aspernatur
                                consequatur cum
                                Lorem ipsum dolor sit amet, consectetur adipisicing elit. A amet, asperiores
                                aspernatur
                                consequatur cum
                            </div>
                        </div>
                        <div class="comment-item clearfix">
                            <div class="user">
                                李明
                            </div>
                            <div class="comment-content">
                                illum molestias necessitatibus nulla omnis quae quidem reiciendis sed vel velit.
                                Explicabo
                                Lorem ipsum dolor sit amet, consectetur adipisicing elit. A amet, asperiores
                                aspernatur
                                consequatur cum
                                Lorem ipsum dolor sit amet, consectetur adipisicing elit. A amet, asperiores
                                aspernatur
                                consequatur cum
                            </div>
                        </div>
                    </div>
                </div>
                <div class="hr"></div>
            </div>
            <div ng-if="TimeLine.padding" class="tac"> 加载中。。。</div>
            <div ng-if="TimeLine.no_more_data" class="tac"> 没有更多数据了</div>
        </div>
    </div>
</div>
{{--</script>--}}
